package com.ruoyi.project.inspection.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 车辆信息库对象 vehicle
 * 
 * @author ruoyi
 * @date 2020-07-13
 */
public class Vehicle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 车牌号码 */
    @Excel(name = "车牌号码")
    private String plateNo;

    /** 车主 */
    @Excel(name = "车主")
    private String owner;

    /** 车型（行驶证上面的车型） */
    @Excel(name = "车型", readConverterExp = "行=驶证上面的车型")
    private String vehicleType;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 使用性质 */
    @Excel(name = "使用性质")
    private String useCharacter;

    /** 品牌型号 */
    @Excel(name = "品牌型号")
    private String model;

    /** 车辆识别代码 */
    @Excel(name = "车辆识别代码")
    private String vin;

    /** 发动机号码 */
    @Excel(name = "发动机号码")
    private String engineNo;

    /** 注册日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerDate;

    /** 发证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueDate;

    /** 发证机构 */
    @Excel(name = "发证机构")
    private String seal;

    /** 档案编号 */
    @Excel(name = "档案编号")
    private String fileNo;

    /** 核载人数 */
    @Excel(name = "核载人数")
    private String allowNum;

    /** 总质量 */
    @Excel(name = "总质量")
    private String totalMass;

    /** 整备质量 */
    @Excel(name = "整备质量")
    private String curbWeight;

    /** 核定载质量 */
    @Excel(name = "核定载质量")
    private String loadQuality;

    /** 外廊尺寸 */
    @Excel(name = "外廊尺寸")
    private String externalSize;

    /** 准牵引总质量 */
    @Excel(name = "准牵引总质量")
    private String totalQuasiMass;

    /** 备注 */
    @Excel(name = "备注")
    private String marks;

    /** 首次检验有效期 */
    @Excel(name = "首次检验有效期")
    private String record;

    /** 最后一次车检日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一次车检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastRecord;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contacts;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String phone;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Integer userId;

    /** 创建企业ID */
    @Excel(name = "创建企业ID")
    private Integer comparyId;

    /** 车辆所属人员ID */
    @Excel(name = "车辆所属人员ID")
    private Integer ownerId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPlateNo(String plateNo) 
    {
        this.plateNo = plateNo;
    }

    public String getPlateNo() 
    {
        return plateNo;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setVehicleType(String vehicleType) 
    {
        this.vehicleType = vehicleType;
    }

    public String getVehicleType() 
    {
        return vehicleType;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setUseCharacter(String useCharacter) 
    {
        this.useCharacter = useCharacter;
    }

    public String getUseCharacter() 
    {
        return useCharacter;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setVin(String vin) 
    {
        this.vin = vin;
    }

    public String getVin() 
    {
        return vin;
    }
    public void setEngineNo(String engineNo) 
    {
        this.engineNo = engineNo;
    }

    public String getEngineNo() 
    {
        return engineNo;
    }
    public void setRegisterDate(Date registerDate) 
    {
        this.registerDate = registerDate;
    }

    public Date getRegisterDate() 
    {
        return registerDate;
    }
    public void setIssueDate(Date issueDate) 
    {
        this.issueDate = issueDate;
    }

    public Date getIssueDate() 
    {
        return issueDate;
    }
    public void setSeal(String seal) 
    {
        this.seal = seal;
    }

    public String getSeal() 
    {
        return seal;
    }
    public void setFileNo(String fileNo) 
    {
        this.fileNo = fileNo;
    }

    public String getFileNo() 
    {
        return fileNo;
    }
    public void setAllowNum(String allowNum) 
    {
        this.allowNum = allowNum;
    }

    public String getAllowNum() 
    {
        return allowNum;
    }
    public void setTotalMass(String totalMass) 
    {
        this.totalMass = totalMass;
    }

    public String getTotalMass() 
    {
        return totalMass;
    }
    public void setCurbWeight(String curbWeight) 
    {
        this.curbWeight = curbWeight;
    }

    public String getCurbWeight() 
    {
        return curbWeight;
    }
    public void setLoadQuality(String loadQuality) 
    {
        this.loadQuality = loadQuality;
    }

    public String getLoadQuality() 
    {
        return loadQuality;
    }
    public void setExternalSize(String externalSize) 
    {
        this.externalSize = externalSize;
    }

    public String getExternalSize() 
    {
        return externalSize;
    }
    public void setTotalQuasiMass(String totalQuasiMass) 
    {
        this.totalQuasiMass = totalQuasiMass;
    }

    public String getTotalQuasiMass() 
    {
        return totalQuasiMass;
    }
    public void setMarks(String marks) 
    {
        this.marks = marks;
    }

    public String getMarks() 
    {
        return marks;
    }
    public void setRecord(String record) 
    {
        this.record = record;
    }

    public String getRecord() 
    {
        return record;
    }
    public void setLastRecord(Date lastRecord) 
    {
        this.lastRecord = lastRecord;
    }

    public Date getLastRecord() 
    {
        return lastRecord;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setComparyId(Integer comparyId) 
    {
        this.comparyId = comparyId;
    }

    public Integer getComparyId() 
    {
        return comparyId;
    }
    public void setOwnerId(Integer ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Integer getOwnerId() 
    {
        return ownerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("plateNo", getPlateNo())
            .append("owner", getOwner())
            .append("vehicleType", getVehicleType())
            .append("address", getAddress())
            .append("useCharacter", getUseCharacter())
            .append("model", getModel())
            .append("vin", getVin())
            .append("engineNo", getEngineNo())
            .append("registerDate", getRegisterDate())
            .append("issueDate", getIssueDate())
            .append("seal", getSeal())
            .append("fileNo", getFileNo())
            .append("allowNum", getAllowNum())
            .append("totalMass", getTotalMass())
            .append("curbWeight", getCurbWeight())
            .append("loadQuality", getLoadQuality())
            .append("externalSize", getExternalSize())
            .append("totalQuasiMass", getTotalQuasiMass())
            .append("marks", getMarks())
            .append("record", getRecord())
            .append("lastRecord", getLastRecord())
            .append("contacts", getContacts())
            .append("phone", getPhone())
            .append("userId", getUserId())
            .append("comparyId", getComparyId())
            .append("createTime", getCreateTime())
            .append("ownerId", getOwnerId())
            .toString();
    }
}
